﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;

namespace AppMusicStore
{
    public partial class rptQuantitySold : DevExpress.XtraReports.UI.XtraReport
    {
        public int Count { get; set; }
        public int Sum { get; set; }
        public string String1 { get; set; }
        public string String2 { get; set; }

        public rptQuantitySold()
        {
            InitializeComponent();
        }

        public void BindData()
        {
            xrTableCell4.DataBindings.Add("Text", DataSource, "Id");

            xrTableCell5.DataBindings.Add("Text", DataSource, "Title");

            xrTableCell6.DataBindings.Add("Text", DataSource, "QuantitySold");

            cellCount.Text += Count.ToString();
            cellSum.Text += Sum.ToString();
            lbl1.Text += String1;
            lbl2.Text += String2;
            lbl3.Text += Sum;
        }


    }
}
